package com.yeyks.consumer.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UserAccountOverviewInvitedUserListVo {

    private String phone;
    private Date createTime;
    private String avatar;
    private Integer makerLevel;
    private String makerLevelName;

    public String getMakerLevelName() {
        try {
            switch (this.makerLevel){
                case 0:
                    return "夜鱼快宿会员";
                case 1:
                    return "白银推手";
                case 2:
                    return "金牌推手";
                case 3:
                    return "钻石推手";
                default:
                    return "白银推手";
            }
        } catch (Exception e) {
            return "白银推手";
        }
    }
}
